﻿
namespace Grove.Cards.MultiSets {
	using System.Collections.Generic;
	using Grove.Core;
	using Grove.Core.Ai;
	using Grove.Core.Details.Cards.Effects;
	using Grove.Core.Details.Mana;
	using Grove.Core.Dsl;
	using Grove.Core.Targeting;
	using Grove.Core.Details.Cards;

	public class DoomBlade : CardsSource {
		public override IEnumerable<ICardFactory> GetCards() {
			yield return C.Card
			  .Named("Doom blade")
			  .ManaCost("{1}{B}")
			  .Type("Instant")
			  .InSets(ECardSet.Magic2012, ECardSet.Magic2011, ECardSet.Magic2010, ECardSet.Commander)
			  .Text("Destroy target nonblack creature.")
			  .FlavorText("The void is without substance but cuts like steel.")
			  .Effect<DestroyTargetPermanent>()
			  .Timing(Timings.InstantRemovalTarget())
			  .Category(EffectCategories.Destruction)
			  .Targets(
				selectorAi: TargetSelectorAi.Destroy(),
				effectValidator: C.Validator(Validators.Creature((creature) => !creature.HasColors(ManaColors.Black))));
		}
	}
}